//package com.dmgis.hndz.common.config;
//
//import org.springframework.boot.autoconfigure.mongo.MongoProperties;
//import org.springframework.boot.context.properties.ConfigurationProperties;
//import org.springframework.stereotype.Component;
//
///**
// * @ClassName: MultipleMongoProperties
// * @Description: 从配置文件加载数据源
// * @Author Tan
// * @Date 2019/7/3
// */
//@Component
//@ConfigurationProperties(prefix = "mongodb")
//public class MultipleMongoProperties {
//
//    private MongoProperties primary = new MongoProperties();
//
//    private MongoProperties secondary = new MongoProperties();
//
//    public MongoProperties getPrimary() {
//        return primary;
//    }
//
//    public void setPrimary(MongoProperties primary) {
//        this.primary = primary;
//    }
//
//    public MongoProperties getSecondary() {
//        return secondary;
//    }
//
//    public void setSecondary(MongoProperties secondary) {
//        this.secondary = secondary;
//    }
//}